package com.java.domain;

import java.io.Serializable;

/**
 * @version 2020.3.4
 * @User 悠恋
 * @Data 2022/11/26
 * @Time 18:19
 */
public class OrderDetail implements Serializable {
    private String odid; //订单详情编号
    private String gname; //商品名称
    private Double gprice; //商品单价
    private Double gtotal; //商品总价
    private Integer num; //商品数量
    private String gimg; //商品图片路径
    private String oid; //订单编号

    public OrderDetail() {
    }

    public OrderDetail(String odid, String gname, Double gprice, Double gtotal, Integer num, String gimg, String oid) {
        this.odid = odid;
        this.gname = gname;
        this.gprice = gprice;
        this.gtotal = gtotal;
        this.num = num;
        this.gimg = gimg;
        this.oid = oid;
    }

    public String getOdid() {
        return odid;
    }

    public void setOdid(String odid) {
        this.odid = odid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Double getGprice() {
        return gprice;
    }

    public void setGprice(Double gprice) {
        this.gprice = gprice;
    }

    public Double getGtotal() {
        return gtotal;
    }

    public void setGtotal(Double gtotal) {
        this.gtotal = gtotal;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getGimg() {
        return gimg;
    }

    public void setGimg(String gimg) {
        this.gimg = gimg;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "odid='" + odid + '\'' +
                ", gname='" + gname + '\'' +
                ", gprice=" + gprice +
                ", gtotal=" + gtotal +
                ", num=" + num +
                ", gimg='" + gimg + '\'' +
                ", oid='" + oid + '\'' +
                '}';
    }
}
